package me.midday.java.base.knowledge.mutlthread;

public class DaemonThread extends Thread{

    @Override
    public void run(){
        for(int i=0; i< 100; i++){
            System.out.println(getName() + " " + i);
        }
    }

    public static void main(String[] args){
        DaemonThread t = new DaemonThread();
        t.setDaemon(true);
        t.start();

        for(int i= 0; i< 10; i++){
            System.out.println(Thread.currentThread().getName()+ " " + i);
        }
    }

}
